package com.lgy.springboot_example.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel("订单信息")
public class OrderInfo implements Serializable {
    @Id
    @ApiModelProperty("主键自增")
    private Integer orderId;
    @ApiModelProperty("订单名称")
    private String orderName;
    @ApiModelProperty(value = "订单创建时间",hidden = true)
    private Date createTime;
    @ApiModelProperty("订单状态")
    private Integer status;

    public OrderInfo(Integer orderId, String orderName, Date createTime, Integer status) {
        this.orderId = orderId;
        this.orderName = orderName;
        this.createTime = createTime;
        this.status = status;
    }

    public OrderInfo() {
    }
}
